﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
using MovieDB.Data.Entities;

namespace MovieDB.Data.Configs
{
    public class ClassMapConvention : IClassConvention
    {
        public void Apply(IClassInstance instance)
        {
            instance.OptimisticLock.Version();
            instance.LazyLoad();
        }
    }
}
